// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增安全-培训信息记录表数据 POST /safeTrainingRecords/add */
export async function safeTrainingRecordsAdd(
  body: BIZAPI.SafeTrainingRecordsCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsAdd(
  body: BIZAPI.SafeTrainingRecordsCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeTrainingRecordsAdd(
  body: BIZAPI.SafeTrainingRecordsCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsAdd(
  body: BIZAPI.SafeTrainingRecordsCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeTrainingRecords/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeTrainingRecords/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除安全-培训信息记录表数据 POST /safeTrainingRecords/delete */
export async function safeTrainingRecordsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeTrainingRecordsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeTrainingRecords/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeTrainingRecords/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-培训信息记录表数据 POST /safeTrainingRecords/get */
export async function safeTrainingRecordsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeTrainingRecordsEntity>;

export async function safeTrainingRecordsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeTrainingRecordsEntity>>;

export async function safeTrainingRecordsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeTrainingRecordsEntity>;

export async function safeTrainingRecordsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeTrainingRecordsEntity>(
      `/app/safeTrainingRecords/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeTrainingRecordsEntity>(
    `/app/safeTrainingRecords/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-培训信息记录表VO数据 POST /safeTrainingRecords/getVo */
export async function safeTrainingRecordsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeTrainingRecordsResp>;

export async function safeTrainingRecordsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeTrainingRecordsResp>>;

export async function safeTrainingRecordsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeTrainingRecordsResp>;

export async function safeTrainingRecordsGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeTrainingRecordsResp>(
      `/app/safeTrainingRecords/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeTrainingRecordsResp>(
    `/app/safeTrainingRecords/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-培训信息记录表分页数据 POST /safeTrainingRecords/page */
export async function safeTrainingRecordsPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeTrainingRecordsEntity>;

export async function safeTrainingRecordsPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeTrainingRecordsEntity>>;

export async function safeTrainingRecordsPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeTrainingRecordsEntity>;

export async function safeTrainingRecordsPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeTrainingRecordsEntity>(
      `/app/safeTrainingRecords/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeTrainingRecordsEntity>(
    `/app/safeTrainingRecords/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新安全-培训信息记录表数据 POST /safeTrainingRecords/update */
export async function safeTrainingRecordsUpdate(
  body: BIZAPI.SafeTrainingRecordsUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsUpdate(
  body: BIZAPI.SafeTrainingRecordsUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeTrainingRecordsUpdate(
  body: BIZAPI.SafeTrainingRecordsUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeTrainingRecordsUpdate(
  body: BIZAPI.SafeTrainingRecordsUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeTrainingRecords/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeTrainingRecords/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-培训信息记录表VO分页数据 POST /safeTrainingRecords/voPage */
export async function safeTrainingRecordsVoPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeTrainingRecordsResp>;

export async function safeTrainingRecordsVoPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeTrainingRecordsResp>>;

export async function safeTrainingRecordsVoPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeTrainingRecordsResp>;

export async function safeTrainingRecordsVoPage(
  body: BIZAPI.SafeTrainingRecordsQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeTrainingRecordsResp>(
      `/app/safeTrainingRecords/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeTrainingRecordsResp>(
    `/app/safeTrainingRecords/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
